﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace BrettM.SimpleDemo.WebApp.Models
{
    /// <summary>
    /// Represents a list of customers
    /// </summary>
    [XmlRoot("Customers")]
    public class CustomerList 
        : List<Customer>
    {
        /// <summary>
        /// The default constructor creates an empty list of customers
        /// </summary>
        public CustomerList()
        {
            
        }

        /// <summary>
        /// Constructor creates a ne wCustomerList and populates with the collection
        /// </summary>
        /// <param name="collection">An IEnumerable collection of Customer objects.</param>
        public CustomerList(IEnumerable<Customer> collection) :
             base(collection)
        {

        }
    }
}